
public class MyException extends Exception {//自定义异常
	private double num;
	public MyException(double num){
		super("不能对负数开平方");
		this.num=num;
	}
	public double getNum(){
		return num;
	}
	

}
